<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var sum = 0;
			for (var i = 1; i < 100; i++) {
				sum += i;
			}
			document.write("1到100之间所有整数的和为：" + sum);
		</script>
	</head>
	<body>
	</body>
</html>
